package org.pp.controller;


import org.pp.mapper.UserMapper;
import org.pp.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class Test {

    @Autowired
    UserMapper userMapper;
    @GetMapping("/test")
    public String test(){
        List<User> all = userMapper.getAll();
        System.out.println(all.size());
        return "OK,test";
    }
}
